package org.eiahe.hr.employeeRelation.domain.bo;

import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.ehe.common.core.validate.AddGroup;
import org.ehe.common.core.validate.EditGroup;
import org.ehe.common.mybatis.core.domain.BaseEntity;
import org.eiahe.hr.employeeRelation.domain.TechnologyAgreement;

import java.util.Date;

/**
 * 技术研发协议业务对象
 *
 * @author zhangnn
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = TechnologyAgreement.class, reverseConvertGenerate = false)
public class TechnologyAgreementBo extends BaseEntity {

    /**
     * 协议ID
     */
    @NotNull(message = "协议ID不能为空", groups = { EditGroup.class })
    private Long agreementId;

    /**
     * 用户ID
     */
    @NotNull(message = "用户ID不能为空", groups = { AddGroup.class })
    private Long userId;

    /**
     * 员工ID
     */
    @NotNull(message = "员工ID不能为空", groups = { AddGroup.class })
    private Long employeeId;

    /**
     * 工号
     */
    @NotBlank(message = "工号不能为空", groups = { AddGroup.class })
    private String employeeNo;

    private String employeeName;


    /**
     * 协议名称
     */
    @NotBlank(message = "协议名称不能为空", groups = { AddGroup.class })
    private String agreementName;

    /**
     * 协议内容
     */
    private String agreementContent;

    /**
     * 签订时间
     */
    private Date signDate;

    /**
     * 生效时间
     */
    private Date effectiveDate;

    /**
     * 失效时间
     */
    private Date expiryDate;

    /**
     * 附件
     */
    private String attachment;
}
